<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js面向对象动态增删改查标签页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        @font-face {
            font-family: 'icomoon';
            src: url('fonts/icomoon.eot?tomleg');
            src: url('fonts/icomoon.eot?tomleg#iefix') format('embedded-opentype'), url('fonts/icomoon.ttf?tomleg') format('truetype'), url('fonts/icomoon.woff?tomleg') format('woff'), url('fonts/icomoon.svg?tomleg#icomoon') format('svg');
            font-weight: normal;
            font-style: normal;
            font-display: block;
        }
        
        li {
            list-style: none;
        }
        
        h2 {
            margin-top: 50px;
            margin-bottom: 50px;
            text-align: center;
        }
        
        #box {
            border: 2px solid black;
            width: 800px;
            height: 500px;
            margin: auto;
        }
        
        .top {
            position: relative;
            width: 100%;
            height: 70px;
            border-bottom: 1px solid #333;
        }
        
        .top ul {
            width: 760px;
            height: 100%;
            display: flex;
        }
        
        .top ul li {
            position: relative;
            width: 80px;
            height: 100%;
            text-align: center;
            line-height: 80px;
            border-right: 1px solid #333;
            overflow: hidden;
        }
        
        .top ul li em {
            font-family: "微软雅黑";
            font-size: 10px;
            position: absolute;
            top: -11px;
            right: -18px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            color: rgb(255, 255, 255);
            text-align: left;
            line-height: 25px;
            background-color: rgb(61, 61, 61);
        }
        
        .liclick {
            background-color: rgb(96, 255, 91);
            border-bottom: 2px solid white;
            z-index: 2;
        }
        
        .add {
            width: 30px;
            height: 30px;
            font-family: 'icomoon';
            border: 2px solid #333;
            text-align: center;
            line-height: 30px;
            position: absolute;
            top: 5px;
            right: 5px;
        }
        
        .text div {
            margin: 20px;
            display: none;
        }
        
        .text .textclick {
            margin: 20px;
            display: block;
        }
        
        .inputerro {
            border: 1px solid red;
            text-decoration: line-through;
            background-color: rgb(255, 2, 2);
        }
    </style>
    <script src="面向对象.js"></script>
</head>

<body>
    <h2>js面向对象动态增删改查标签页</h2>
    <div id="box">
        <div class="top">
            <ul>
                <li class="liclick"> <span>测试1 </span> <em>x</em></li>
                <li> <span>测试2</span><em>x</em></li>
                <li> <span>测试3</span><em>x</em></li>
            </ul>
            <div class="add"></div>
        </div>
        <div class="text">
            <div class="textclick">测试111111111111111111111111111111111</div>
            <div>测试22222222222222222222222222222222222222222</div>
            <div>测试33333333333333333333333333333333333333333333</div>
        </div>
    </div>

</body>

</html>